package com.ydcycloud.variety.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smart.mvc.model.Pagination;
import com.ydcycloud.variety.dao.SlideShowDao;
import com.ydcycloud.variety.model.SlideShow;
import com.ydcycloud.variety.service.SlideShowService;
import com.ydcycloud.sys.service.impl.BaseServiceImpl;

@Component("slideShowService")
public class SlideShowServiceImpl extends
		BaseServiceImpl<SlideShowDao,SlideShow, Integer> implements
		SlideShowService {


	@Autowired
	public void setDao(SlideShowDao dao) {
		this.dao = dao;
	}

	/**
	 * 获取轮播图
	 * */
	@Override
	public List<Map<String, Object>> getSlideShow() {
	
		return dao.getSlideShow();
	}

	@Override
	public Pagination<Map<String, Object>> getSildeShow(Integer pageNo,
			Integer pageSize) {
	
		return dao.getSildeShow(pageNo,pageSize);
	}

	@Override
	public void deleteByIds(String ids) {
		dao.deleteByIds(ids);
		
	}



}
